﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using Bussiness;
using AssureMessage = Bussiness.AssureMessage;
using Product = Model.Product;

namespace Services1
{
    public partial class WebService
    {
        [WebMethod]
        public AssureMessage RegisterProduct(Product product, Model.ProductStore store)
        {
            return ProductManager.RegisterProduct(product, store);
        }

        [WebMethod]
        public AssureMessage ModifyProduct(Product product)
        {
            return ProductManager.ModifyProduct(product);
        }

        [WebMethod]
        public List<Product> GetProductList()
        {
            return ProductManager.GetProductList();
        }

        //[WebMethod]
        //public string gets()
        //{
        //    ServiceReference1.WebService1SoapClient c = new WebService1SoapClient("http://192.168.1.12/CamperoSSDD/WebService.asmx");
        //    return "";
        //}
    }
}
